from pydantic import BaseModel, Field
from typing import Optional

class ElementModel(BaseModel):
    """
    元素定位模型
    """
    desc: Optional[str] = Field(default=None, description="元素描述")
    selector: str = Field(..., description="元素选择器")
    index: Optional[int] = Field(default=1, description="元素索引")
    